#include <array>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
using namespace std;
 /*
	member functions:
		iterator;
		capacity;
		element access;
		modifier;
	global funtions
 */
int main(){
	/*
		vector test;
	*/
	cout<<"---------------vector test-----------"<<endl;
	vector<int> v;
	cout<<v.capacity()<<endl;
	for(int i=0;i<10;i++)
		v.push_back(i);
	cout<<v.size()<<"		"<<v.capacity()<<endl;
	/*
		array test;
	*/
	cout<<"---------------array test------------"<<endl;
	array<int,10> b={0,1,2,3,4,5,6,7,8,9};
	copy(b.begin(),b.end(),ostream_iterator<int>(cout));
	cout<<endl;
	copy(b.rbegin(),b.rend(),ostream_iterator<int>(cout));
	cout<<endl;
	copy(b.cbegin(),b.cend(),ostream_iterator<int>(cout));
	cout<<endl;
	copy(b.crbegin(),b.crend(),ostream_iterator<int>(cout));
	cout<<endl;

	cout<<b.size()<<endl
		<<b.max_size()<<endl<<b.empty()<<endl
		<<*(b.data()+5)<<endl
		<<get<6>(b);
	
	
	system("pause");

}